<%@ page import="DroidEye.DAO.TeacherDAO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="RightSideBackGroundSetter.jsp"/>
<%
    String teacherID = (String) session.getAttribute("ThisTeacherID");
%>
<html>
<head>
    <title>教师添加项目</title>
    <style>

        .form-box{width:600px;margin: 0 auto}
        .form-box textarea{resize:none;width:500px;height:300px}
        .form-input{position: relative;display: flex; padding-bottom: 10px}
        .form-input span{width: 100px;text-align: right;padding-right: 10px}
        .form-input input{width: 500px}
    </style>
</head>
<body>
<h3>教师添加项目</h3>
<div class="pad10">
    <form action="/TeacherAddProjectServlet" method="post" class="form-box">
       <div class="form-input"><span>项目号：</span><input type="text" name="projectID"  class="input-normal"></div>
        <div class="form-input"><span>项目名：</span><input type="text" name="projectName"  class="input-normal"></div>
        <div class="form-input"><span>项目介绍：</span> <textarea rows="35" cols="120" name="projectInfo"  class="input-normal"></textarea></div>
        <center>
            <input type="submit" value="添加"  class="button-normal">&nbsp;&nbsp;
            <input type="button" onclick="location='TeacherHasLoginTestRight.jsp'" value="返回" class="button-normal">&nbsp;&nbsp;已添加<%=TeacherDAO.getTeacherDAOInstance().projectNumber(teacherID)%>个项目
        </center>
    </form>
</div>
</body>
</html>
